<?php

namespace App\Listeners;

use App\Events\lanProgressChange;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Repositories\OrderRepository;

class lanProgressUpdate
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct(OrderRepository $order)
    {
        $this->order = $order;
    }

    /**
     * Handle the event.
     *
     * @param  lanProgressChange  $event
     * @return void
     */
    public function handle(lanProgressChange $event)
    {
        $this->order->updateDate($event->lan);
    }
}
